Endpoints

Login Endpoint

Once your account is ready to use the Support Ticket API, the first step will be authenticating yourself. This authentication process necessitates the submission of a POST request to the login endpoint mentioned below. This request should include the accessKey (email) and secretKey (password) in JSON format to validate and establish the user's credentials.

Login to API user

POST https://merchants-api-stg.lime-pay.com/v1/auth/login

Production POST https://merchants-api.lime-pay.com/v1/auth/login

Request Body

Name
Type
Description

accessKey*

string

Configured API User email address

secretKey*

string

Configured API User's password

{
    "idUser": 123,
    "username": "[email protected]",
    "idMerchant": 456
}
circle-info

Make sure you add in the header of the request the following value: Content-Type: application/json


Switch Context Endpoint

In some cases where a user needs to manage tickets from more than one MID, the Switch Context endpoint allows you to switch effortlessly between MIDs irrespective of the number of MIDs the user account belongs to.

Switch Between MIDs

POST https://merchants-api-stg.lime-pay.com/v1/auth/{mid}/switchContext

Production POST https://merchants-api.lime-pay.com/v1/auth/{mid}/switchContext

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN

circle-info

Replace the {mid} in the URLs above with your merchant MID.

Note: You cannot switch to an account that the user does not belong to.

If switched from MID A to MID B, note that all responses from other endpoints will operate under MID B.

Context switched successfully. Your session now operates under the new merchant.


Logout Endpoint

Invalidates the current session token. Use this when you are done to keep your account secure.

Delete Session

DELETE https://merchants-api-stg.lime-pay.com/v1/auth/session/destroy

Production DELETE https://merchants-api.lime-pay.com/v1/auth/session/destroy

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN

Session destroyed successfully.


TICKET ENDPOINTS

Described below are the endpoints for creating and confirming support tickets.

To send requests, ensure you include the BEARER_TOKEN obtained from the Login Endpoint in the Authentication header field of the requests. You can use it in the following ways:

As part of the header:

Or as a cookie:


Create Draft Ticket

Create a support ticket in draft state

POST https://merchants-api-stg.lime-pay.com/v1/tickets/createTicket

Production POST https://merchants-api.lime-pay.com/v1/tickets/createTicket

Creates a new support ticket in draft state. The ticket is not submitted until confirmed. After creation, you can add attachments before calling the confirm endpoint.

Request Body

Name
Type
Description

type*

string

Ticket type (e.g. DEPOSIT)

category

string

Ticket category (e.g. FLAG_FOR_REVIEW_DEPOSIT)

description*

string

Description of the issue

referenceId

integer

ID of the related entity (deposit, cashout, etc.)

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Authorization

String

Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

circle-exclamation

Add Attachment

Upload a document to a draft ticket

POST https://merchants-api-stg.lime-pay.com/v1/tickets/{idTicket}/addAttachment

Production POST https://merchants-api.lime-pay.com/v1/tickets/{idTicket}/addAttachment

Uploads a file to a draft ticket. The ticket must still be in draft state (not yet confirmed).

circle-info

Replace {idTicket} with the ticket ID returned by the create ticket endpoint.

This request must be sent as multipart/form-data, not JSON.

Request Body (multipart/form-data)

Name
Type
Description

file*

binary

The file to upload (PDF, image, etc.)

documentType*

string

Type of document: VOUCHER, ID_DOCUMENT, BANK_STATEMENT

Headers

Name
Type
Description

Content-Type

String

multipart/form-data

Cookie

String

BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Authorization

String

Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

circle-info

For deposit review tickets, if a voucher already exists in the system it gets attached automatically. Check uploadedDocuments before uploading a duplicate.


Confirm and submit a draft ticket

POST https://merchants-api-stg.lime-pay.com/v1/tickets/{idTicket}/confirmTicket

Production POST https://merchants-api.lime-pay.com/v1/tickets/{idTicket}/confirmTicket

Confirms a draft ticket and submits it to the support team. Once confirmed, the ticket cannot be modified.

circle-info

Replace {idTicket} with the ticket ID returned by the create ticket endpoint.

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Authorization

String

Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk


DEPOSIT REVIEW ENDPOINTS

These endpoints allow you to flag a deposit or a deposit reversal for manual review. They automatically create a draft ticket — you only need to attach any missing documents and confirm.


Flag Deposit for Review

Flag a deposit for manual review

POST https://merchants-api-stg.lime-pay.com/v1/deposits/{idDeposit}/flagForReview

Production POST https://merchants-api.lime-pay.com/v1/deposits/{idDeposit}/flagForReview

Flags a deposit for manual review. Internally creates a ticket of type FLAG_FOR_REVIEW_DEPOSIT.

circle-info

Replace {idDeposit} with the deposit ID you want to flag for review.

Validations performed before ticket creation:

  • Deposit must exist

  • Deposit must belong to the authenticated merchant

  • A minimum time interval must have passed since the deposit was created

If the deposit has a voucher, it is automatically attached to the ticket.

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Authorization

String

Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

circle-check

After receiving the response, you may add more attachments and confirm the ticket via POST /v1/tickets/{idTicket}/confirmTicket.


Flag Deposit Reversal for Review

Flag a deposit reversal for manual review

POST https://merchants-api-stg.lime-pay.com/v1/deposits/{idDeposit}/flagForReviewReversal

Production POST https://merchants-api.lime-pay.com/v1/deposits/{idDeposit}/flagForReviewReversal

Flags a deposit reversal for manual review. Internally creates a ticket of type FLAG_FOR_REVIEW_DEPOSIT_REVERSAL. Applies the same validations and auto-attachment logic as flagForReview.

circle-info

Replace {idDeposit} with the deposit ID whose reversal should be flagged for review.

Headers

Name
Type
Description

Content-Type

String

application/json

Cookie

String

BEARER_TOKEN=U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Authorization

String

Bearer U3dcUx8IRJ5nLjb0WYM4cHa3qHFqnrqAk

Last updated

Was this helpful?