curl --request PUT \
--url https://service-sandbox.tazapay.com/payment_attempt/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
'{
"status": "success",
"message": "",
"data": {
"amount": 178119,
"balance_transaction": "",
"charge_currency": "NZD",
"created_at": "2025-11-27T06:34:56.155963Z",
"customer": "cus_d4j9rccp0qvqg4fi5h2g",
"customer_details": {
"country": "SG",
"email": "andrea@example.com",
"name": "Andrea Lark",
"phone": {
"calling_code": "65",
"number": "87654321"
}
},
"fx_transaction": {
"exchange_rate": 0.581354,
"final": {
"amount": 103550,
"currency": "USD"
},
"id": "fx_ck9burm2ug8qevron93g",
"initial": {
"amount": 178119,
"currency": "NZD"
},
"object": "fx_transaction"
},
"id": "pat_ck9burng1tqjeffhetmg",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"object": "payment_attempt",
"payin": "chk_ck9bu8ng1tqjeffhetd0",
"payment_method_details": {
"card": {
"amount": 178119,
"checks": {},
"currency": "NZD",
"expiry": {},
"issuing_country": "GB",
"payer_name": "dsf",
"three_d_secure": {}
},
"type": "card"
},
"refunded": "",
"reference_id": "",
"status": "succeeded",
"status_description": ""
}
}curl --request PUT \
--url https://service-sandbox.tazapay.com/payment_attempt/{id} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"key1": "value1",
"key2": "value2"
}
}
'{
"status": "success",
"message": "",
"data": {
"amount": 178119,
"balance_transaction": "",
"charge_currency": "NZD",
"created_at": "2025-11-27T06:34:56.155963Z",
"customer": "cus_d4j9rccp0qvqg4fi5h2g",
"customer_details": {
"country": "SG",
"email": "andrea@example.com",
"name": "Andrea Lark",
"phone": {
"calling_code": "65",
"number": "87654321"
}
},
"fx_transaction": {
"exchange_rate": 0.581354,
"final": {
"amount": 103550,
"currency": "USD"
},
"id": "fx_ck9burm2ug8qevron93g",
"initial": {
"amount": 178119,
"currency": "NZD"
},
"object": "fx_transaction"
},
"id": "pat_ck9burng1tqjeffhetmg",
"metadata": {
"key1": "value1",
"key2": "value2"
},
"object": "payment_attempt",
"payin": "chk_ck9bu8ng1tqjeffhetd0",
"payment_method_details": {
"card": {
"amount": 178119,
"checks": {},
"currency": "NZD",
"expiry": {},
"issuing_country": "GB",
"payer_name": "dsf",
"three_d_secure": {}
},
"type": "card"
},
"refunded": "",
"reference_id": "",
"status": "succeeded",
"status_description": ""
}
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Set of key-value pairs to attach with the payment attempt object
Was this page helpful?