post_link.pg_template = tips and the recipient ID in pg_user_id.redirect_url.redirect_url for the sender: the sender pays on the tips page.post_link.error — create a new tip with a new external_id.| Status | Meaning | Final |
|---|---|---|
new | The tip is created and waits for the sender to pay. | No |
process | The sender started the payment: it is in progress. | No |
completed | The tip is paid and sent to the recipient's card. | Yes |
error | The payment failed. | Yes |
post_link is passed in Create, Freedom Pay sends a POST request to it when the tip reaches a final status: completed or error.| Field | Type | Description |
|---|---|---|
token | string | Tip ID: id from the response of Create. |
status | string | completed or error. |
amount | string | Tip amount, for example 500.00. |
external_id | string | Tip ID in the merchant system. |
error_code | integer | Error code of the failed payment. Only for status = error. |
error_message | string | Error text of the failed payment. Only for status = error. |
{
"token": "019a3b2c-7d4e-7f60-8a1b-2c3d4e5f6a7b",
"status": "completed",
"amount": "500.00",
"external_id": "tip1001"
}200 within 10 seconds: any other code counts as a failure, and the notification is sent again, up to 3 attempts.token and status.