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-ARS-001",
"amount": "5000.00",
"currency": "ARS",
"shop_code": "your_ars_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"callback_url": "https://merchant.example.com/webhooks/payin"
}

Response

Response fields

Fields with null values and empty paymentData 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.
payment_page_urlstringURL of the hosted payment page.
payment_page_expires_atstringHosted payment page expiration timestamp.
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-ARS-001",
"amount": "5000.00",
"currency": "ARS",
"shop_code": "your_ars_shop",
"merchant_user_id": "merchant-user-001",
"merchant_user_ip": "203.0.113.10",
"callback_url": "https://merchant.example.com/webhooks/payin",
"payment_page_url": "https://api.payfield.io/public/payin-pages/pay_12345",
"payment_page_expires_at": "2025-12-05T10:15:00.000000Z",
"transaction_type": "payin",
"created_at": "2025-12-05T10:00:00.000000Z",
"updated_at": "2025-12-05T10:00:00.000000Z"
}