
Prime
Global Payment Solutions
Supports in this guide: Payouts
Provider website: a-prime.tech
What you need to do for start processing transactions (brief summary)
- Choose account type
- Get your credentials (from Prime)
- Connect in Dashboard
- Send an API request
Choose account type
Prime can be connected in different ways (depending on your needs):
- If you do payouts -> choose Provider account
If you're not sure which one to use, confirm with your Corefy account manager.
Prerequisites: get from Prime
Get the following values for your Prime project/account:
- Merchant Account Name -> Corefy field
merchant_account_name-> example:Corefy LLC. Not issued by Prime - pick any label yourself when connecting the account; Corefy only uses it to keep your Prime account uniquely identifiable, and it can't be changed after the account is connected. - API Key -> Corefy field
api_key-> example:a1B2c3D4e5F6g7H8i9J0k1L2m3N4o5P6-> where to find: Prime backoffice / issued by Prime manager. Authenticates every request to Prime's API. - API Secret -> Corefy field
api_secret-> example:s3cR3tK9y7Hf2Nm4Qx8Wp1Zt6Vb0Ld5C-> where to find: Prime backoffice / issued by Prime manager. Used to sign each request (HMAC-SHA512) so Prime can verify it wasn't tampered with.
Payouts processing (connect Provider account, create payout-invoice)
Connect Provider account in Corefy Dashboard
Step 1 - Open connection form
Open Prime in the provider directory and press Connect at Prime Provider Overview page in the New connection section. Choose Provider account.
Step 2 - Fill in fields (provider -> Corefy)
- Merchant Account Name ->
merchant_account_name(a label you choose yourself, not issued by Prime) - API Key ->
api_key - API Secret ->
api_secret
Success
You have connected Prime Provider account!
First request to Corefy API (MIN)
What it does: creates a payout-invoice. One payout route is available: service payment_card_eur, method Card payout, currency EUR.
Payout - MIN
POST /api/payout-invoices
{
"data": {
"type": "payout-invoice",
"attributes": {
"service": "payment_card_eur",
"currency": "EUR",
"amount": 10,
"fields": {
"card_number": "411111******1111"
},
"context": {
"card": {
"exp_month": "01",
"exp_year": "27"
}
}
}
}
}
fields [card_number] is the payout destination, and context [card] carries the card's expiry date - Prime may decline the payout if either is missing, and neither has a Dashboard Constant to fall back on. Prime also requires customer [reference_id], email, name, phone, date_of_birth, address and metadata [ip], but every one of these can be set as a Constant instead (see below) - Corefy sends the Constant whenever the request doesn't include the field, so a route with all of them configured can omit customer from the request entirely, as shown here.
Payout - MAX
POST /api/payout-invoices
{
"data": {
"type": "payout-invoice",
"attributes": {
"service": "payment_card_eur",
"currency": "EUR",
"amount": 10,
"customer": {
"reference_id": "85af8385-d00e-4f58-ab1f-3a527fdf2d3b",
"name": "John Doe",
"email": "johndoe@email.com",
"phone": "+441234567890",
"date_of_birth": "2000-02-02",
"address": {
"full_address": "123 Baker street",
"country": "GB",
"city": "London",
"street": "123 Baker street",
"post_code": "NW16XE"
},
"metadata": {
"ip": "203.0.113.10"
}
},
"fields": {
"card_number": "411111******1111"
},
"context": {
"card": {
"exp_month": "01",
"exp_year": "27"
}
}
}
}
}
Send these fields directly in the request when you have accurate per-customer data - a value in the request always takes priority over the configured Constant. Prime also requires a browser fingerprint and user agent on its side, but Corefy generates and sends both of these for you, so they're not part of your request.
Extended request (MAX)
Why add extra fields (typical reasons):
- Provide additional customer details for compliance/reconciliation
- Positively influence conversion rate
- Include optional fields required by your specific flow
Constants (fallback fields)
Constants are static values that Corefy can send to Prime instead of dynamic data from your API request, when those fields are missing in the request.
Priority (predictable rule):
- If a value is present in the request -> Corefy uses the request value
- Else if the constant is set -> Corefy uses the constant
- Else -> the field is left out of the request to Prime (Prime may decline the payout if it's one of the required fields)
Currently available constants (constant -> Corefy API field)
General:
TTL-> not present on thepayout-invoicerequest itself; sets how many seconds Prime waits before the payout request expires. Defaults to 3600 seconds if the constant isn't set.
Customer:
CUSTOMER_ID->customer.reference_idCUSTOMER_EMAIL->customer.emailCUSTOMER_FIRST_NAME->customer.name(first part of the name)CUSTOMER_LAST_NAME->customer.name(last part of the name)CUSTOMER_PHONE->customer.phoneCUSTOMER_IP->customer.metadata.ipCUSTOMER_DATE_OF_BIRTH->customer.date_of_birth
Customer address:
CUSTOMER_ADDRESS_FULL->customer.address.full_addressCUSTOMER_ADDRESS_COUNTRY->customer.address.countryCUSTOMER_ADDRESS_CITY->customer.address.cityCUSTOMER_ADDRESS_STREET->customer.address.streetCUSTOMER_ADDRESS_ZIP->customer.address.post_code
Additional info
- Prime payout webhooks are delivered automatically - Corefy generates and sends the callback URL as part of each payout request, so there's no separate webhook URL to configure in the Prime backoffice.
FAQ / Troubleshooting
- Invalid credentials / auth error -> verify you used the correct API Key / API Secret pair for the chosen environment
- Payout declined with
AMOUNT_LESS_THAN_MIN-> the requested amount is below Prime's minimum payout amount for this currency; confirm the minimum with your Corefy account manager - Payout declined with
NOT_CONFIGURED-> Prime hasn't finished configuring your account on their side; contact your Prime manager - Missing customer data fields -> provide the fields in the API request, or set the matching Constants (see Constants) so Corefy fills them in automatically
Question
Still looking for help connecting your Prime account? Please contact our support team!