Skip to main content

Create a Payment

ENDPOINT
POST https://api.codecoogs.com/v1/payments
REQUEST BODY
{
"payer": "0f516377-d5a8-420b-ab2b-ec3075fb59d8",
"payee": "9eafedd1-64cb-42f7-88ff-3a49f20cc1d7",
"name": "Coco's Pizza Party",
"price": 60,
"quantity": 4,
"description": "Pizza party celebration",
"method": "Zelle",
"expiration": null
}

URL Parameters


No parameters.

Body Parameters


payer string

The UUID of the user making the payment.


payee string

The UUID of the user recieving the payment.


name string

The payment's name.


price integer

The price of the payment.


quantity integer

The number of items bought.


description string

The payment's description.


method string

The payment method used.


expiration string Optional

The payment's expiration date.

Returns

Returns a success status after successful payment creation. This call returns a success status and an error message if something goes wrong.