Withdrawal

Receiving a commission token to withdraw an orphan transaction

Withdrawal

post
Header parameters
x-api-public-keystringoptional

Public API-key

x-api-signaturestringoptional

Signing the request body with a private API-key

Content-typestringoptional

Request content type

Example: application/json
Body
tokenstringoptional

Withdrawal Token

Example: U2FsdGVkX1917ygTMGz5re9+mNFK157RFTYFGL5zaY4rtWbbkrHl4nekHQHy3iQzYOGMRwP7ggpxgJeOSTKhNeAMBd/U+DRC6dmqVe6zQKxcWOvJpg4DWOMAGlDg9YA1DF3qMZevVrq4dzAOL2RtS88DdnumWokKS+EAZBvWlShTEX5K6xJqFynWTVtBXp/2A3Kq5B03akM8odQW1Fdgsg==
addressstringoptional

Output address

Example: 0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a
commentstring | nulloptional

Comment on the conclusion

webhookUrlstringoptional

URL for sending a webhook about the withdrawal

Example: https://merchant.domain/webhooks/orphan
Responses
curl -L \
  --request POST \
  --url 'https://app.apollopayment.io/api-gateway/orphan-deposits/withdrawal' \
  --header 'Content-Type: application/json' \
  --data '{
    "token": "U2FsdGVkX1917ygTMGz5re9+mNFK157RFTYFGL5zaY4rtWbbkrHl4nekHQHy3iQzYOGMRwP7ggpxgJeOSTKhNeAMBd/U+DRC6dmqVe6zQKxcWOvJpg4DWOMAGlDg9YA1DF3qMZevVrq4dzAOL2RtS88DdnumWokKS+EAZBvWlShTEX5K6xJqFynWTVtBXp/2A3Kq5B03akM8odQW1Fdgsg==",
    "address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
    "comment": null,
    "webhookUrl": "https://merchant.domain/webhooks/orphan"
  }'
{
  "success": true,
  "response": {
    "id": "2e0444dc-79e9-413d-95b7-9ae112882108",
    "organizationId": "5d380c7e-30e9-4b05-a489-36a4be9123e3",
    "orderId": "be2ded2c-0755-4f1d-bc56-463d6e41c981",
    "stage": "DEPOSIT",
    "status": "PROCESSED",
    "message": null,
    "currency": "BNB",
    "network": "ethereum",
    "amount": "0.00612",
    "canWithdrawal": true,
    "inTransaction": {
      "addressType": "PAY_IN",
      "addressId": "d5d5b0b3-caf5-4ca2-baed-738e165e4386",
      "address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
      "txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
      "amount": "0.00612",
      "status": "processed",
      "createdAt": "2024-12-26T08:21:53.280Z"
    },
    "outTransaction": {
      "address": "0x4642BEd309FdB7FFdB34175Cf39c409711cefa5a",
      "txId": "0xdb81763509668071c5d2a18f295d8d7ac48a7a31927ed2463cea41e291394f8f",
      "amount": "0.00612",
      "status": "processed",
      "feeAmount": "0.000090942",
      "feeAmountUSD": "0.03",
      "withdrawalId": "445ffbc7-a5ea-4d8d-b7ba-82740c031349",
      "createdAt": "2024-12-26T08:21:53.280Z"
    },
    "createdAt": "2024-12-26T08:21:53.280Z"
  }
}

Last updated