pg_template = tips.redirect_url from the response for the sender.post_link: the result comes only as a notification, there is no method to get the status. See Tips Overview.status = error), create a new tip with a new external_id.X-JWS-Signature: see Invoice Overview.| HTTP | status | Meaning | Next step |
|---|---|---|---|
200 | new | The tip is created. | Open redirect_url for the sender. |
200 | any | A tip with this external_id already exists: it is returned with its current status, redirect_url only for new. | Use the returned tip. |
200 | error with error_code | Internal error. | Repeat the request later. |
401, 404, 422 | error | The request is rejected. | See «Errors» below. |
| HTTP | error_code | When | What to do |
|---|---|---|---|
401 | 12000 | The API user is not linked to a merchant. | Contact Freedom Pay support. |
401 | 9998 | The signature is invalid. | Check the signature: see Invoice Overview. |
404 | 12103 | The recipient card is not found: no approved card with this card_token is saved for recipient.user_id. | Check recipient; save the card with Save card without a charge. |
422 | 9403 | The X-JWS-Signature header is missing. | Pass the signature. |
422 | 0 | A field is missing or invalid. error_description names the field. | Fix the request. |