v1
latestOpenAPI 3.0.02026-07-24103118224.7 KBPayment
Update a server payment
Updates an existing payment with new information.
This endpoint allows you to modify payment details such as billing information, customer details, or other payment metadata after the payment has been created but before it's finalized.
post/api/server/payment/{paymentId}
Path parameters
paymentIdstring required
Example:pay_1234567890abcdef
Unique identifier of the payment to update
Request body
Example request
{
"card": {
"number": "4242424242424242",
"expiration_month": 12,
"expiration_year": 2025,
"cvc": "123"
},
"products": [
{
"name": "Premium Subscription",
"price": 10000,
"quantity": 1
},
{
"name": "Setup Fee",
"price": 5000,
"quantity": 1
}
],
"currency": "EUR",
"customerEmail": "customer@example.com",
"billingCountry": "FR",
"postalCode": "75001",
"businessName": "Acme Corp",
"taxId": "FR12345678901",
"firstName": "John",
"name": "Doe",
"pricingMode": "TAX_EXCLUSIVE",
"threeDsSuccessUrl": "https://yourapp.com/payment/success?paymentId=pay_123",
"threeDsFailureUrl": "https://yourapp.com/payment/failure?paymentId=pay_123",
"statementDescriptor": "MY BRAND"
}Response
Update a server payment successful
Example response
{
"lastDepositAttempt": {
"status": "succeeded",
"amount": 10000,
"paymentMethod": "CARD",
"error": "card_declined",
"attemptedAt": "2025-10-24T14:35:00Z"
},
"taxRateInPercentage": 20,
"pricingMode": "TAX_EXCLUSIVE",
"lastThreeDsAttempt": {
"status": "succeeded",
"cardBrand": "Visa",
"createdDate": "2025-11-12T21:51:33.530Z"
},
"invoiceUrl": "https://api.inflowpay.com/invoice/download?token=abc123xyz",
"customerPaymentMethod": {
"id": "cpm_abc123",
"type": "card",
"cardBrand": "visa",
"cardLast4": "4242"
}
}