Integration

Integration

Setup

Before start using our api, you need to have an api key and webhook. Checkout below setup guidelines:

  1. Setup authentication
  2. Setup webhook

API Work Flow

sequenceDiagram
    participant YourWebhookEndpoint as Your webhook endpoint
    participant YouApplication as Your application/system
    participant NiqueApi as Nique API

    YouApplication ->> NiqueApi: HTTP POST (Payload)
    NiqueApi ->> NiqueApi: Validate Payload

    alt Payload is Invalid
        NiqueApi ->> YouApplication: HTTP 400 Bad Request
    else Payload is Invalid
        NiqueApi ->> YouApplication: HTTP 200 OK
        NiqueApi ->> NiqueApi: Handle request
        NiqueApi ->> YourWebhookEndpoint: Result Data
        YourWebhookEndpoint ->> NiqueApi: HTTP 200 OK
    end