v9
OpenAPI 3.1.02026-08-043703845.2 MBPayments
Update payment return URL
Changes where the buyer lands after completing an off-site step, up until they return. Accepts either a secret key or the payment's own client_secret, so the surface that knows the final destination can set it.
patch/payments/{payment_id}/return_url
Path parameters
payment_idstring required
The unique identifier of the payment.
Request body
Example request
{
"return_url": "https://merchant.example/thanks"
}Response
Return URL updated
Example response
{
"next_action": {
"type": "redirect"
},
"status": "requires_confirmation"
}