• Home
  • Our APIs
  • Guides
  • Our Products
    • Nothing Found
  • Home
  • Our APIs
  • Guides
  • Our Products
    • Nothing Found
    v1.0
    Introduction
    Authentication
    Currency
    Terminals
    Intent
      get
      Get intent by ID
      post
      Create payment intent
      post
      Create Pre-Auth create intent
      post
      Create Pre-Auth capture intent
      post
      Create a Pre-Auth cancel intent
      post
      Create refund intent
      post
      Create reversal intent
      post
      Create NFT intents
      post
      Cancel an intent being processed
      post
      Request a terminal to process an intent

Create payment intent

Creates a payment intent. This is the first step in making a payment / purchase / sale transaction.

Securityapi_key
Request
path Parameters
mid
required
string

Merchant Identifier.

Request Body schema: application/json
subTotal
required
number

Currency is in a no-decimal format. For decimal based currencies, when converting to a decimal based format place a decimal before the last two digits.

tip
number
tax
number
merchantReference
string

A field where you can provide your own reference to send to the host

customerRef
string
Deprecated

Replaced by merchantReference. A field where you can provide your own reference to send to the host

manualCardEntry
boolean

If true, the terminal will not attempt to read a card and will instead prompt the user to enter the card details manually. Note: This is only supported on terminals that allow unlinked refunds. ie when the 'parentTransactionId' is omitted from the request body.

postbackUrl
string <uri>

When a terminal has finished processing a transaction it will send a callback to the url defined here.

object (IBasketItem)
Responses
201
400

Bad payload.

401

Invalid API key/MID.

403

Forbidden from performing this action.

500
post/merchant/{mid}/intent/payment
Request samples
  • Payload
application/json
{
  • "subTotal": 100,
  • "tip": 50,
  • "tax": 10,
  • "merchantReference": "sale-10-10-2022",
  • "customerRef": "sale-10-10-2022",
  • "manualCardEntry": false,
  • "postbackUrl": "https://<your-domain>.com/postback",
  • "items": {
    • "name": "string",
    • "qty": 0,
    • "itemId": "string",
    • "price": 0,
    • "skuId": "string"
    }
}
Response samples
  • 201
  • 400
  • 401
  • 403
  • 500
application/json
{
  • "intentId": "uuid-uuid-uuid-uuid"
}
Legal
  • Privacy Policy
Support
  • Contact us
© Copyright Till Payments 2023. All right reserved.