Submit Payin Card Data¶
Submits card data for an existing payin order in a host-to-host card integration flow.
Use this endpoint after creating a payin order. The request must include the created order ID and the card, customer, and browser data required for card payment processing.
Overview¶
In a host-to-host card integration, the merchant first creates a payin order using the Create Payin Order endpoint.
After the order is created, the merchant sends card data for this order using the Submit Payin Card Data endpoint.
This endpoint does not create a new order. It submits card data for an existing payin order.
Card data handling
This endpoint is intended for host-to-host card integrations where the merchant system submits card data directly.
The merchant should handle card data only in a secure environment that follows applicable card data security requirements.
Endpoint¶
POST /api/v1/orders/payin/card-data
/api/v1/orders/payin/card-data
HTTP
POST /api/v1/orders/payin/card-data HTTP/1.1
X-Api-Key-Id: 3fa85f64-5717-4562-b3fc-2c963f66afa6
X-Signature: <generated-signature>
X-Timestamp: 1234567
Content-Type: application/json
Accept: application/json
{
"order_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"card_number": "string",
"first_name": "string",
"last_name": "string",
"cvv": "4206",
"customer": {
"reference_id": "wYOOf7Kp2WYijJtem2RC3ZqHRN2YJJdMCZZbgfQtV_3i7ttxLNTFmtk3FEjf",
"first_name": " ''--} }'.'pLp'-.}p{.{ }'} {-}.p'}- .{..L{L-'-.'L{",
"last_name": " .{ {L'.-'-.{L'}p.}''-{.L}Lp }L--'",
"email": "user@example.com",
"phone": "+3599597573",
"address": {
"country": "AF",
"city": "''L}.''p' '}p-{ }p-p''L- }{'.}{}L{-p-{p'{p'{LLL{' L p- {Lp'.{p'p L{.LLL p{ }.{}L LL {- p}",
"street": "string",
"post_code": "string"
}
},
"browser_info": {
"color_depth": "15",
"java_enabled": true,
"screen_height": "7865",
"screen_width": "1",
"timezone": "8227",
"device_channel": "03",
"window_height": "6026",
"window_width": "30188"
},
"exp_month": "05",
"exp_year": "07"
}
200
Headers
API key identifier issued for the merchant integration.
Request signature generated from the HTTP method, request path without query string, raw request body, and timestamp.
Unix epoch timestamp in seconds used in the signature base string.
Request signature
This endpoint requires the X-Signature header. The signature must be generated from the raw request body.
For signature generation rules, see Request Signature Authentication.
Request body
application/json
Request body for submitting card data for an existing payin order.
Unique identifier of the payin order created by the Create Payin Order endpoint.
Card number used for the host-to-host card payment.
Cardholder first name.
Cardholder last name.
Card security code.
customer
object
required
Customer information associated with the payin order.
Customer information associated with the payin order.
Customer identifier in the merchant system.
Customer first name. Use letters and supported special characters only.
Customer last name. Use letters and supported special characters only.
Customer email address in a standard email format.
Customer phone number in international format. The value must start with + and contain digits after the country calling code.
address
object
optional
Customer address information.
Customer address information.
Two-letter country code in ISO 3166-1 alpha-2 format.
Customer city name.
Customer street address.
Customer postal or ZIP code.
browser_info
object
required
Customer browser information required for card payment processing.
Customer browser information required for card payment processing.
Color depth value reported by the customer browser.
Indicates whether Java is enabled in the customer browser.
Screen height value reported by the customer browser.
Screen width value reported by the customer browser.
Timezone value reported by the customer browser.
Device channel value used for card payment processing.
010203Browser window height value reported by the customer browser.
Browser window width value reported by the customer browser.
Card expiration month.
Card expiration year in two-digit format.
Customer data
Customer data can be provided during payin order creation or during the card data submission step, depending on the merchant integration flow.
For this endpoint, the customer object is required by the request schema.
Responses
200 OK. Card data submitted successfully. application/json
The request was processed successfully. No response body is returned.