curl --request POST \
--url https://api.sandbox.tesouro.com/finops/v1/payment-links/{payment_link_id}/expire \
--header 'Authorization: Bearer <token>' \
--header 'x-finops-version: <x-finops-version>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"currency": "AED",
"expires_at": "2023-11-07T05:31:56Z",
"payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_methods": [
"<string>"
],
"payment_page_url": "<string>",
"recipient": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "entity",
"bank_accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_holder_name": "<string>",
"account_number": "<string>",
"bic": "<string>",
"country": "US",
"currency": "USD",
"display_name": "<string>",
"iban": "<string>",
"is_default": false,
"name": "<string>",
"routing_number": "<string>",
"sort_code": "<string>",
"was_created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>"
},
"status": "<string>",
"invoice": {
"due_date": "2023-12-25",
"file": {
"mimetype": "<string>",
"name": "<string>",
"url": "<string>"
},
"issue_date": "2023-12-25"
},
"payer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "entity",
"bank_accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_holder_name": "<string>",
"account_number": "<string>",
"bic": "<string>",
"country": "US",
"currency": "USD",
"display_name": "<string>",
"iban": "<string>",
"is_default": false,
"name": "<string>",
"routing_number": "<string>",
"sort_code": "<string>",
"was_created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>"
},
"payment_intent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"application_fee_amount": 123,
"object": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "payable"
},
"provider": "<string>",
"selected_payment_method": "<string>",
"tesouro_data": {
"link_token": "<string>",
"payment_link_id": "<string>"
}
},
"payment_reference": "<string>",
"return_url": "https://pay.example.com/complete"
}curl --request POST \
--url https://api.sandbox.tesouro.com/finops/v1/payment-links/{payment_link_id}/expire \
--header 'Authorization: Bearer <token>' \
--header 'x-finops-version: <x-finops-version>' \
--header 'x-organization-id: <x-organization-id>'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"currency": "AED",
"expires_at": "2023-11-07T05:31:56Z",
"payment_intent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_methods": [
"<string>"
],
"payment_page_url": "<string>",
"recipient": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "entity",
"bank_accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_holder_name": "<string>",
"account_number": "<string>",
"bic": "<string>",
"country": "US",
"currency": "USD",
"display_name": "<string>",
"iban": "<string>",
"is_default": false,
"name": "<string>",
"routing_number": "<string>",
"sort_code": "<string>",
"was_created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>"
},
"status": "<string>",
"invoice": {
"due_date": "2023-12-25",
"file": {
"mimetype": "<string>",
"name": "<string>",
"url": "<string>"
},
"issue_date": "2023-12-25"
},
"payer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "entity",
"bank_accounts": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_holder_name": "<string>",
"account_number": "<string>",
"bic": "<string>",
"country": "US",
"currency": "USD",
"display_name": "<string>",
"iban": "<string>",
"is_default": false,
"name": "<string>",
"routing_number": "<string>",
"sort_code": "<string>",
"was_created_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
],
"name": "<string>"
},
"payment_intent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"application_fee_amount": 123,
"object": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "payable"
},
"provider": "<string>",
"selected_payment_method": "<string>",
"tesouro_data": {
"link_token": "<string>",
"payment_link_id": "<string>"
}
},
"payment_reference": "<string>",
"return_url": "https://pay.example.com/complete"
}Documentation Index
Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the entity that owns the requested resource.
"9d2b4c8f-2087-4738-ba91-7359683c49a4"
Successful Response
AED, AFN, ALL, AMD, ANG, AOA, ARS, AUD, AWG, AZN, BAM, BBD, BDT, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, BWP, BYN, BZD, CAD, CDF, CHF, CLP, CNY, COP, CRC, CVE, CZK, DJF, DKK, DOP, DZD, EGP, ETB, EUR, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HTG, HUF, IDR, ILS, INR, IQD, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MAD, MDL, MGA, MKD, MMK, MNT, MOP, MUR, MVR, MWK, MXN, MYR, MZN, NAD, NGN, NIO, NOK, NPR, NZD, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SEK, SGD, SHP, SLE, SOS, SRD, SSP, SVC, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMW 1 - 2083Show child attributes
Show child attributes
Show child attributes
Show child attributes
The URL where to redirect the payer after the payment. If return_url is specified, then after the payment is completed the payment page will display the "Return to platform" link that navigates to this URL.
"https://pay.example.com/complete"
Was this page helpful?