curl --request PATCH \
--url https://api.sandbox.tesouro.com/finops/v1/payment-intents/{payment_intent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-finops-version: <x-finops-version>' \
--header 'x-organization-id: <x-organization-id>' \
--data '{
"amount": 123
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"amount": 123,
"currency": "<string>",
"payment_methods": [
"sepa_credit"
],
"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>",
"application_fee_amount": 123,
"batch_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice": {
"due_date": "2023-12-25",
"file": {
"mimetype": "<string>",
"name": "<string>",
"url": "<string>"
},
"issue_date": "2023-12-25"
},
"object": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "payable"
},
"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_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_reference": "<string>",
"provider": "<string>",
"selected_payment_method": "sepa_credit"
}curl --request PATCH \
--url https://api.sandbox.tesouro.com/finops/v1/payment-intents/{payment_intent_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-finops-version: <x-finops-version>' \
--header 'x-organization-id: <x-organization-id>' \
--data '{
"amount": 123
}'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_at": "2023-11-07T05:31:56Z",
"amount": 123,
"currency": "<string>",
"payment_methods": [
"sepa_credit"
],
"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>",
"application_fee_amount": 123,
"batch_payment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoice": {
"due_date": "2023-12-25",
"file": {
"mimetype": "<string>",
"name": "<string>",
"url": "<string>"
},
"issue_date": "2023-12-25"
},
"object": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "payable"
},
"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_link_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"payment_reference": "<string>",
"provider": "<string>",
"selected_payment_method": "sepa_credit"
}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
sepa_credit, us_ach, blik, card, bacs_direct_debit, bancontact, eps, giropay, ideal, p24, sepa_debit, sofort, applepay, googlepay, affirm, klarna Show child attributes
Show child attributes
Show child attributes
Show child attributes
sepa_credit, us_ach, blik, card, bacs_direct_debit, bancontact, eps, giropay, ideal, p24, sepa_debit, sofort, applepay, googlepay, affirm, klarna Was this page helpful?