Skip to main content
POST
/
cl
/
transactions
/
inbound
Create Inbound Transaction (Chile)
curl --request POST \
  --url https://hg.cash/api/v1/cl/transactions/inbound \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "paymentMethodId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "amount": 123,
  "customer": {
    "firstName": "<string>",
    "lastName": "<string>",
    "email": "jsmith@example.com",
    "personalId": "<string>",
    "ip": "<string>",
    "city": "<string>",
    "address": "<string>",
    "zip": "<string>",
    "phone": "<string>"
  },
  "description": "<string>",
  "webhookUrl": "<string>",
  "returnUrl": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "checkoutUrl": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.hg.cash/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

User API authentication token with format: cash_<64-char-hex>

Example: cash_16cdc3b6f83c72d9d2680adca4f430962981f6bf32613a129dded0aa060387d2

Body

application/json

Create inbound transaction (hosted checkout) for Chile CLP accounts

accountId
string<uuid>
required
paymentMethodId
string<uuid>
required

ID from GET /cl/payment-methods

amount
required

Amount in CLP (e.g. 100.50)

customer
object
required
description
string
webhookUrl
string<uri>
returnUrl
string<uri>
language
enum<string>
Available options:
EN,
ES,
PT

Response

Transaction created

id
string<uuid>
required
checkoutUrl
string<uri>
required

Redirect payer to this hosted checkout URL

status
enum<string>
required
Available options:
pending