GhostyCash docs
  • 🔥Integrations
  • API Reference
    • Currency
    • Price
    • Create
    • Status
  • Widget / iFrame Integration
Powered by GitBook
On this page
  1. API Reference

Create

This API is for creating Ghosty Order

Create Ghosty order

POST /create

Creates a new ghosty order.

Headers

Name
Value

Content-Type

application/json

x-ghostycash-api-key*

API_KEY

Body

Name
Type
Description

currency_from*

string

Currency symbol to swap from

currency_to

string

Currency symbol to swap to with fixed rate

currency_to*

string

Currency symbol to swap to

amount_from*

number

Amount to swap from

address_to*

string

Recipient address

receiver_memo_tag*

string

Recipient address tag

is_anonym

boolean

Flag to make the transaction anonymous

fixed

boolean

True for fixed rate, False for float rate

Response

{
  "message": "success",
  "order_info": "BDfN7vF9TMKi"
}
{
  "message": "error",
  "code": 400
}

Header: "x-ghostycash-api-key"

  • The "x-ghostycash-api-key" header plays a critical role in the authentication and authorization process for API requests to the GhostyCash platform. This custom header is required for all API calls to ensure secure access to the platform's features and data. The API key, represented by this header, is a unique identifier assigned to users or applications, enabling the platform to validate requests, track usage, and enforce access controls. Users must include their specific API key in the header of each request to authenticate themselves and gain the necessary permissions to perform operations within the GhostyCash ecosystem. Failure to provide a valid API key will result in requests being denied, ensuring that sensitive information and functionalities remain protected against unauthorized access.

PreviousPriceNextStatus

Last updated 11 months ago