> ## Documentation Index
> Fetch the complete documentation index at: https://doc.seerbit.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Authorise

> In SeerBit API, the term “authorisation” indicates, that payment is authorised but not captured. This allows a merchant to cancel transaction at their discretion, typically based but not limited to fraud-related activities. This authorisation state is valid for a limited period of time, which provides a window to cancel the transaction.



## OpenAPI

````yaml https://raw.githubusercontent.com/seerbit/openapi/master/specs/external-api.yml post /payments/authorise
openapi: 3.0.1
info:
  title: SeerBit API Reference
  contact: {}
  version: '1.0'
servers:
  - url: https://seerbitapi.com/api/v2
security: []
tags:
  - name: AUTHENTICATION
  - name: STANDARD CHECKOUT
  - name: ORDER CHECKOUT
  - name: PAYMENT METHOD
  - name: MOMO
  - name: NON 3DS PAYMENT
  - name: CARD
  - name: ACCOUNT
  - name: TOKENIZE
  - name: AUTHORISE
  - name: PREAUTHORIZATION
  - name: RECURRENT
paths:
  /payments/authorise:
    post:
      tags:
        - AUTHORISE
      summary: Authorise
      description: >-
        In SeerBit API, the term “authorisation” indicates, that payment is
        authorised but not captured. This allows a merchant to cancel
        transaction at their discretion, typically based but not limited to
        fraud-related activities. This authorisation state is valid for a
        limited period of time, which provides a window to cancel the
        transaction.
      operationId: Authorise
      requestBody:
        content:
          application/json:
            schema:
              type: object
            examples:
              AuthoriseRequest:
                $ref: '#/components/examples/AuthoriseRequest'
              AuthorisewithCardTokenRequest:
                $ref: '#/components/examples/AuthorisewithCardTokenRequest'
        required: true
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                type: object
              examples:
                Authorise201Response:
                  $ref: '#/components/examples/Authorise201Response'
                Authorise201Response1:
                  $ref: '#/components/examples/Authorise201Response1'
                AuthorisewithCardTokenResponse1:
                  $ref: '#/components/examples/AuthorisewithCardTokenResponse1'
                AuthorisewithCardTokenResponse:
                  $ref: '#/components/examples/AuthorisewithCardTokenResponse'
        '400':
          description: Method Not Allowed
          content:
            application/json:
              schema:
                type: object
              examples:
                400Response:
                  $ref: '#/components/examples/400Response'
                400Response1:
                  $ref: '#/components/examples/400Response1'
                400Response3:
                  $ref: '#/components/examples/400Response3'
                400Response5:
                  $ref: '#/components/examples/400Response5'
                400Response6:
                  $ref: '#/components/examples/400Response6'
                400Response7:
                  $ref: '#/components/examples/400Response7'
                400Response8:
                  $ref: '#/components/examples/400Response8'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
              examples:
                401Response1:
                  $ref: '#/components/examples/401Response1'
        '403':
          description: Missing Header Token
          content:
            application/json:
              schema:
                type: object
              examples:
                CreateOrder403Response:
                  $ref: '#/components/examples/Order403Response'
                403Response:
                  $ref: '#/components/examples/403Response'
                403Response2:
                  $ref: '#/components/examples/403Response2'
                403Response3:
                  $ref: '#/components/examples/403Response3'
                403Response4:
                  $ref: '#/components/examples/403Response4'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
              examples:
                404Response1:
                  $ref: '#/components/examples/404Response1'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
              examples:
                500Response:
                  $ref: '#/components/examples/500Response'
      deprecated: false
      security:
        - Basic: []
components:
  examples:
    AuthoriseRequest:
      summary: An example of Authorise Request payload
      value:
        paymentReference: PREAUTH124456789798765k3K1CB0
        publicKey: SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu
        cardNumber: '5123450000000008'
        cvv: '100'
        expiryMonth: '05'
        expiryYear: '21'
        currency: NGN
        country: NG
        productDescription: preauth test capture
        amount: '100.00'
        email: johndoe@gmail.com
        fullName: john doe
    AuthorisewithCardTokenRequest:
      summary: AuthorisewithCardToken Request payload
      value:
        paymentReference: 30451A789S987643128hgffsfP6K
        publicKey: SBTESTPUBK_dhrpzbRpR34l6VmqkCFOKA94L5E1jSTu
        cardToken: tk_b0a4b2f6-9ac1-485b-b031-9e018d9479bd
        currency: NGN
        country: NG
        productDescription: preauth test capture
        amount: '1.00'
        email: johndoe@gmail.com
        fullName: john doe
        callbackUrl: https://google.com
    Authorise201Response:
      summary: An example of 200 response payload
      value:
        status: SUCCESS
        data:
          code: '00'
          payments:
            paymentReference: PREAUTH1244567890987654321CB0
            linkingReference: F938003831601492624719
            status: AUTHORIZED
            card:
              bin: '512345'
              last4: '0008'
              token: tk_40a0503d-4586-4220-a69e-c69cc9293016
          message: APPROVED
    Authorise201Response1:
      summary: An example of 200 response payload
      value:
        status: SUCCESS
        data:
          code: '00'
          payments:
            paymentReference: PREAUTH1244567890987654321CB0
            linkingReference: F938003831601492624719
            status: AUTHORIZED
            card:
              bin: '512345'
              last4: '0008'
              token: tk_40a0503d-4586-4220-a69e-c69cc9293016
          message: FAILURE = TIMED_OUT (Issuer or switch inoperative)
    AuthorisewithCardTokenResponse1:
      summary: An example of Authorise with Card Token Response payload
      value:
        status: SUCCESS
        data:
          code: S12-91
          payments:
            paymentReference: 31451A789S987643128hgffsfP6K
            linkingReference: F535459411601493328771
            status: FAILED
            card:
              bin: '512345'
              last4: 8
              token: tk_b0a4b2f6-9ac1-485b-b031-9e018d9479bd
          message: FAILURE = TIMED_OUT (Issuer or switch inoperative)
    AuthorisewithCardTokenResponse:
      summary: An example of Authorise with Card Token Response payload
      value:
        status: SUCCESS
        data:
          code: '00'
          payments:
            paymentReference: 30451A789S987643128hgfdsfP6W
            linkingReference: F135171921601494142535
            status: AUTHORIZED
            card:
              bin: '512345'
              last4: 8
              token: tk_b0a4b2f6-9ac1-485b-b031-9e018d9479bd
          message: APPROVED
    400Response:
      summary: An example of 400 response payload
      value:
        message: Bad Request
        error: There has been a problem with reading or understanding the request.
    400Response1:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Duplicate transaction reference
    400Response3:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Invalid/Missing parameters = amount
    400Response5:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Invalid/Missing parameters = currency
    400Response6:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Invalid/Missing parameters = country
    400Response7:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Missing Card details
    400Response8:
      summary: An example of 400 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Incomplete Card details
    401Response1:
      summary: An example of 401 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Invalid credentials
    Order403Response:
      summary: An example of 403 response payload
      value:
        message: Header Token Missing
        error: PERMISSION
    403Response:
      summary: An example of 403 response payload
      value:
        message: Confirm Merchant Environment
        error: PERMISSION
    403Response2:
      summary: An example of 403 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Bad credentials = invalid public key
    403Response3:
      summary: An example of 403 response payload
      value:
        status: ERROR
        data:
          code: S12
          message: Bad credentials
    403Response4:
      summary: An example of 403 response payload
      value:
        data:
          code: S12
          message: Invalid/Missing parameters = paymentReference
    404Response1:
      summary: An example of 404 response payload
      value:
        message: Not Found
        error: The server can not find the requested resource
    500Response:
      summary: An example of 500 response payload
      value:
        message: Internal Server Error
        error: PROCESSING
  securitySchemes:
    Basic:
      type: http
      scheme: basic

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.