Skip to main content

3.1 Create PayIn

POST /api/v1/payins

Request

ParameterTypeRequiredDescription
X-API-KeystringYesAPI key.
X-TimestampstringYesRequest time (ISO-8601 or UNIX sec).
X-SignaturestringYesHMAC-SHA256(timestamp + body, secret).
Content-TypestringYesapplication/json.

Example request

{
"external_id": "PIN-BOB-P2C-H2H-001",
"amount": "5000.00",
"currency": "BOB",
"shop_code": "your_bob_p2c_h2h_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"paymentData": {
"holder": "Maria Gomez"
},
"callback_url": "https://merchant.example.com/webhooks/payin"
}

Response

Response fields

Fields with null values are omitted from the response.

ParameterTypeDescription
idnumberPayfield operation ID.
statusstringCurrent payin status.
external_idstringUnique payin identifier from the request.
amountstringPayin amount.
currencystringPayin currency.
shop_codestringShop code used for routing.
merchant_user_idstringMerchant user identifier from the request.
merchant_user_ipstringUser IP from the request.
callback_urlstringCallback URL from the request, when provided.
paymentDataobjectBOB p2c H2H payment data returned to merchant.
transaction_typestringAlways payin.
created_atstringCreation timestamp.
updated_atstringLast update timestamp.
finalization_datestringReturned when the payin reaches a final status.

Example response

{
"id": 12345,
"status": "pending",
"external_id": "PIN-BOB-P2C-H2H-001",
"amount": "5000.00",
"currency": "BOB",
"shop_code": "your_bob_p2c_h2h_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"callback_url": "https://merchant.example.com/webhooks/payin",
"paymentData": {
"card_number": "0001234567890123456789",
"cardholder_name": "Maria Gomez",
"bank_name": "Banco Galicia",
"payment_link": "https://pay.example.com/bob/PIN-BOB-P2C-H2H-001"
},
"transaction_type": "payin",
"created_at": "2025-12-05T10:00:00.000000Z",
"updated_at": "2025-12-05T10:00:00.000000Z"
}