payments
Update Payment
patch/v2/checkout/{id}
Path parameters
idstring required
Example:paym_yWYfCSzsUUhr9KwMv7vuLZHX
Request body
Example request
{
"amount": 50,
"auth": {
"device": {
"city": "Paris",
"country": "France",
"http_accept": "application/json",
"ip": "127.0.0.1",
"languages": "en-US,en;q=0.5",
"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
"zip_code": "75001"
}
},
"card": {
"exp_year": 2022,
"exp_month": 12,
"customer": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
"cvc": "123",
"number": "4242424242424242",
"preferred_network": "national",
"zip_code": "75001",
"external_id": "UniqueId123",
"name": "My card",
"tokenize": true
},
"sepa": {
"mandate": "maecux5aSa4ikae3kaiw9veivahpeer6",
"name": "Jean Dupont",
"date_mandate": "2021-06-14",
"iban": "FR1420041010050500013M02606",
"bic": "TESTFRPP",
"customer": "cust_yWYfCSzsUUhr9KwMv7vuLZHX"
},
"currency": "eur",
"customer": {
"email": "arthur.martin@example.com",
"name": "Arthur Martin",
"mobile": "+33100000000",
"date_birth": "1953-01-19",
"legal_id": "AA732A82C93V20",
"country": "FR",
"external_id": "UniqueId123",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
},
"description": "i am a simple description",
"device": {
"city": "Paris",
"country": "France",
"http_accept": "application/json",
"ip": "127.0.0.1",
"languages": "en-US,en;q=0.5",
"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
"zip_code": "75001"
},
"order_id": "NonUniqueId123",
"capture": true,
"date_settlement": "2021-08-23",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
}Response
Successful Response
Example response
{
"id": "paym_yWYfCSzsUUhr9KwMv7vuLZHX",
"amount": 50,
"auth": {
"device": {
"city": "Paris",
"country": "France",
"http_accept": "application/json",
"ip": "127.0.0.1",
"languages": "en-US,en;q=0.5",
"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
"zip_code": "75001"
}
},
"capture": true,
"created": "1512518400",
"currency": "eur",
"customer": {
"id": "cust_yWYfCSzsUUhr9KwMv7vuLZHX",
"country": "FR",
"created": "UniqueId123",
"date_birth": "1950-05-04",
"email": "test@test.com",
"external_id": "UniqueId123",
"legal_id": "AA732A82C93V20",
"mobile": "+33100000000",
"name": "Arthur Martin",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX"
},
"date_settlement": "2021-09-10",
"date_bank": "2021-09-11",
"description": "A simple description",
"device": {
"city": "Paris",
"country": "France",
"http_accept": "application/json",
"ip": "127.0.0.1",
"languages": "en-US,en;q=0.5",
"user_agent": "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0",
"zip_code": "75001"
},
"fee": 2,
"methods_allowed": [
"card",
"sepa"
],
"order_id": "NonUniqueId123",
"unique_id": "UniqueId123",
"response": "00",
"return_url": "https://stancer.com",
"card": {
"brand": "visa",
"country": "FR",
"created": "1512518400",
"exp_month": 12,
"exp_year": 2022,
"external_id": "UniqueId123",
"id": "card_yWYfCSzsUUhr9KwMv7vuLZHX",
"last4": "4242",
"name": "My card",
"zip_code": "75001"
},
"sepa": {
"bic": "TESTFRPP",
"date_mandate": "2023-04-18",
"id": "sepa_yWYfCSzsUUhr9KwMv7vuLZHX",
"last4": "2606",
"mandate": "5439018654a7585dfghj637192Dfdf5867604gs528",
"name": "Sepa1",
"customer": "cust_yWYfCSzsUUhr9KwMv7vuLZHX"
},
"payout": "pout_yWYfCSzsUUhr9KwMv7vuLZHX",
"billing_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"shipping_address": "addr_yWYfCSzsUUhr9KwMv7vuLZHX",
"payment_intent": "pi_yWYfCSzsUUhr9KwMv7vuLZHX"
}