Mutations

Endpoint: POST /cashramp/bot/graphql Auth: Authorization: Bearer {api_key} (agent API key)


Accept Withdrawal

Agent accepts an incoming withdrawal order.

mutation {
  acceptWithdrawal(p2pPayment: "P2P_PAYMENT_GLOBAL_ID")
}
Argument
Type
Required
Description

p2pPayment

GlobalID!

Yes

The global ID of the P2P payment to accept.

Returns Boolean.


Cancel Withdrawal

Agent cancels a withdrawal order.

mutation {
  cancelWithdrawal(p2pPayment: "P2P_PAYMENT_GLOBAL_ID")
}
Argument
Type
Required
Description

p2pPayment

GlobalID!

Yes

The global ID of the P2P payment to cancel.

Returns Boolean.


Mark Deposit as Received

Agent confirms a deposit has been received.

Argument
Type
Required
Description

p2pPayment

GlobalID!

Yes

The global ID of the P2P payment to confirm.

Returns Boolean.


Mark Withdrawal as Paid

Agent marks a withdrawal as paid out.

Argument
Type
Required
Description

p2pPayment

GlobalID!

Yes

The global ID of the P2P payment.

paymentMethod

GlobalID!

Yes

The global ID of the payment method used.

receipt

String

No

Optional receipt URL or reference for the payout.

Returns Boolean.

Last updated