curl --request POST \
--url https://api.example.com/payins/{payinId}/instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.example.com/payins/{payinId}/instructions"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/payins/{payinId}/instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"payinId": "pi_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"kind": "bank_transfer",
"amount": "500.00",
"currency": "<string>",
"singleUse": true,
"paymentReference": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"requisites": {
"fields": {
"iban": "<string>",
"bic": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"pixKey": "<string>",
"pixKeyType": "phone",
"paymentKey": "<string>",
"financialInstitutionId": "<string>",
"branchNumber": "<string>",
"accountKind": "checking",
"phoneNumber": "<string>"
},
"holder": {
"type": "individual",
"firstName": "<string>",
"lastName": "<string>",
"businessName": "<string>",
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "AF",
"zip": "<string>"
},
"idType": "passport",
"idNumber": "<string>",
"taxId": "<string>",
"nationality": "<string>"
},
"state": "active",
"bankName": "<string>",
"paymentReference": "<string>"
},
"qrPayload": "<string>",
"url": "<string>",
"address": "<string>",
"memo": "<string>",
"chainId": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Open the incoming transfer and retrieve funding instructions
Idempotent: an already-open transfer returns the same payment-account details or on-chain deposit address. A quote that stopped holding answers 410 payin_expired.
curl --request POST \
--url https://api.example.com/payins/{payinId}/instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.example.com/payins/{payinId}/instructions"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.example.com/payins/{payinId}/instructions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"payinId": "pi_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41",
"kind": "bank_transfer",
"amount": "500.00",
"currency": "<string>",
"singleUse": true,
"paymentReference": "<string>",
"expiresAt": "2023-11-07T05:31:56Z",
"requisites": {
"fields": {
"iban": "<string>",
"bic": "<string>",
"accountNumber": "<string>",
"routingNumber": "<string>",
"pixKey": "<string>",
"pixKeyType": "phone",
"paymentKey": "<string>",
"financialInstitutionId": "<string>",
"branchNumber": "<string>",
"accountKind": "checking",
"phoneNumber": "<string>"
},
"holder": {
"type": "individual",
"firstName": "<string>",
"lastName": "<string>",
"businessName": "<string>",
"address": {
"streetAddress": "<string>",
"addressLine2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "AF",
"zip": "<string>"
},
"idType": "passport",
"idNumber": "<string>",
"taxId": "<string>",
"nationality": "<string>"
},
"state": "active",
"bankName": "<string>",
"paymentReference": "<string>"
},
"qrPayload": "<string>",
"url": "<string>",
"address": "<string>",
"memo": "<string>",
"chainId": "<string>"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Your own key for this write, ^[A-Za-z0-9._:-]{1,128}$. A retry with the same key replays the first answer; the same key with a different request is refused.
"po-inv-2026-114"
The client account to act for, as a cl_… id. Omit it to act as yourself.
"cl_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"
Path Parameters
Prefixed pay-in id
Body
Originator information required by payment methods that validate the sending account.
Show child attributes
Show child attributes
Response
Successful Response
Incoming-transfer identifier these instructions fund.
^(?:pi_)?[A-Za-z0-9._:\-]{1,216}$"pi_9f2c1ab84d7e4f1fa3c65b0e7d9a2c41"
Kind of funding instruction returned.
bank_transfer, qr_code, hosted_page, manual Exact amount to send.
"500.00"
Currency or digital asset to send.
Whether these instructions may fund only this incoming transfer once.
Reference that must accompany the account transfer.
UTC timestamp after which these instructions expire.
Receiving payment-account details.
Show child attributes
Show child attributes
Raw payload suitable for rendering as a payment QR code.
Hosted URL where the incoming transfer can be funded.
On-chain destination address.
Memo or destination tag required by the on-chain transfer.
Network on which the destination address exists.
Was this page helpful?