1. Tips
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Card data encryption
      • Payments
        • Overview
        • Pay by card
        • Pay by card: complete 3DS
        • Pay with Apple Pay
        • Pay with Google Pay
        • Pay by recurring profile
        • Create payment page
        • Create payment page with any amount
        • Capture payment (clearing)
        • Cancel payment
        • Refund payment
        • Get payment status
      • Payouts
        • Overview
        • Pay out to card
        • Pay out to IBAN
        • Get payout balance
        • Get payout status
      • Transfers
        • Overview
        • Transfer from card to card
        • Transfer from card to card: complete 3DS
        • Get exchange rates
        • Get transfer status
      • Saved cards
        • Overview
        • Save card
        • Save card: complete 3DS
        • List saved cards
        • Remove saved card
        • Pay by card token
        • Pay out to card token
        • Get payment status
    • Async API
      • Overview
      • Create
        • Create payment
        • Save card without a charge
      • Read
        • Get payment status
        • Get request result
      • Edit
        • Capture payment (clearing)
        • Cancel payment (reverse)
        • Refund payment
  • Merchant API
    • Overview
    • Payments
      • Overview
      • Checkout
      • Pay by saved card
        • Overview
        • Create payment
        • Confirm payment with CVC
        • Confirm payment without the client
      • Create payment
      • Create payment with a payment page template
      • Create payment in a payment frame
      • Create payment with any amount
      • Create recurring payment
      • Capture payment (clearing)
      • Cancel payment
      • Refund payment
      • Get payment status
    • Payouts
      • Overview
      • Create payout page
      • Pay out to saved card
      • Pay out to IBAN
      • Get payout status
      • Get payout balance
    • Saved cards
      • Get saved cards
      • Save card
      • Save card for payouts
      • Delete saved card
      • Save card without a charge
    • Mobile balance
      • Overview
      • Create mobile balance payment
      • Charge mobile balance
      • Get mobile balance payment status
      • Confirm payment with SMS code
      • Resend SMS code
    • Invoices
      • Overview
      • Recurring payments
        • Overview
        • Create recurring profile
        • Get recurring profile
        • Charge by recurring profile
        • Cancel recurring profile
        • Recurring profile notification
      • Tips
        • Overview
        • Create
          POST
      • Create invoice
        POST
      • Get invoice status
        POST
      • Get invoice details
        POST
      • Cancel invoice
        POST
      • Refund invoice
        POST
    • SDK
      • JS SDK
      • Merchant SDK
        • Android
        • iOS
        • Migration guide
    • CMS
      • Overview
      • Get Merchant ID and key
      • WordPress
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
        • Update
      • Tilda
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • InSales
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Ecwid
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Bitrix
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • PrestaShop
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • OpenCart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • CS-Cart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Installment
      • Overview
      • Status
        • Get application status
        • Application status notification
        • Change application status
      • Get partners
      • Create application
    • Callbacks
      • Overview
      • Result notify
      • Check request
      • Payout notify
      • Redirect back
  • Partner API
    • Overview
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Client request status
      • Create terminal
      • Update terminal limits
      • Product request status
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
      • Status
    • Account
      • Overview
      • Create payment
      • Payment status
      • Batch statuses
      • Statement
      • Statement status
      • Balance
      • Balance status
    • Invoices
      • Info
  1. Tips

Overview

Tips: the client pays a tip on the Freedom Pay page, the money goes to the card of an employee or a courier.
The card of the recipient is saved in advance; the tip is created with Create.
The result comes as a notification to post_link.
Signature and request headers are the same as in Invoice API: see Invoice Overview.

How it works#

1.
Save the card of the recipient: Save card without a charge with pg_template = tips and the recipient ID in pg_user_id.
2.
Create a tip with Create: pass the recipient and the card token, get redirect_url.
3.
Open redirect_url for the sender: the sender pays on the tips page.
4.
Freedom Pay charges the card of the sender, sends the money to the card of the recipient and sends a notification to post_link.
A tip is paid once: if the payment fails, the tip gets the status error — create a new tip with a new external_id.

Tip statuses#

StatusMeaningFinal
newThe tip is created and waits for the sender to pay.No
processThe sender started the payment: it is in progress.No
completedThe tip is paid and sent to the recipient's card.Yes
errorThe payment failed.Yes

Notifications#

If post_link is passed in Create, Freedom Pay sends a POST request to it when the tip reaches a final status: completed or error.
FieldTypeDescription
tokenstringTip ID: id from the response of Create.
statusstringcompleted or error.
amountstringTip amount, for example 500.00.
external_idstringTip ID in the merchant system.
error_codeintegerError code of the failed payment. Only for status = error.
error_messagestringError text of the failed payment. Only for status = error.
{
    "token": "019a3b2c-7d4e-7f60-8a1b-2c3d4e5f6a7b",
    "status": "completed",
    "amount": "500.00",
    "external_id": "tip1001"
}
The notification is not signed.
Answer with HTTP 200 within 10 seconds: any other code counts as a failure, and the notification is sent again, up to 3 attempts.
The same notification can arrive more than once: process it by token and status.
Previous
Recurring profile notification
Next
Create