# Create charge route to create charge Endpoint: POST /orders/create-charge Version: 1.0 ## Header parameters: - `x-api-key` (string, required) Api key provided on integrations tab in Easyflow platform. - `x-api-secret` (string, required) Api Secret provided on integrations tab in Easyflow platform. ## Request fields (application/json): - `businessId` (string, required) - `buyer` (object) - `buyer.customerId` (string) - `buyer.name` (string, required) - `buyer.email` (string, required) - `buyer.address` (object) - `buyer.address.zipCode` (string) - `buyer.address.street` (string) - `buyer.address.complement` (string) - `buyer.address.neighborhood` (string) - `buyer.address.city` (string) - `buyer.address.state` (string) - `buyer.address.number` (string) - `buyer.deliveryAddress` (object) - `buyer.document` (object) - `buyer.document.type` (string) - `buyer.phone` (object, required) - `buyer.phone.areaCode` (string) - `buyer.phone.ddd` (string) - `buyer.phone.isMobile` (boolean) - `items` (array, required) - `items.externalReferenceId` (string) - `items.description` (string, required) - `items.imageReference` (string) - `items.quantity` (integer, required) - `items.priceInCents` (integer, required) - `items.paymentLinkId` (string) - `items.commissionedParticipants` (array) - `items.commissionedParticipants.commissionedId` (string) - `items.commissionedParticipants.commissionedValueInCents` (integer) - `items.commissionedParticipants.commissionedPercentage` (integer) - `payments` (array, required) - `payments.method` (string, required) method, such as: pix, credit-card, bank-billet - `payments.numberInstallments` (integer, required) - `payments.valueInCents` (integer, required) - `payments.creditCard` (object) in the case of credit card purchases, all this information is mandatory - `payments.creditCard.token` (string) - `payments.creditCard.flag` (string) - `payments.creditCard.last4Numbers` (string) - `payments.creditCard.expiresAtMonth` (integer) - `payments.creditCard.expiresAtYear` (integer) - `payments.creditCard.holderName` (string) ## Response 200 fields (application/json): - `statusCode` (integer) Example: 200 - `data` (object) - `data.orderId` (string) ## Response 400 fields (application/json): - `message` (string) Invalid param: [] Example: "Invalid param: []" - `error` (string) Bad Request Example: "Bad Request" - `statusCode` (integer) 400 Example: 400 ## Response 401 fields (application/json): - `message` (string) Invalid field Example: "Unauthorized" - `error` (string) Unauthorized Example: "Unauthorized" - `statusCode` (integer) 401 Example: 401 ## Response 403 fields (application/json): - `message` (string) Forbidden resource Example: "Forbidden resource" - `error` (string) Forbidden Example: "Forbidden" - `statusCode` (integer) 403 Example: 403 ## Response 500 fields (application/json): - `message` (string) Internal server error Example: "Internal server error" - `error` (string) Internal Server Error Example: "Internal Server Error" - `statusCode` (integer) 500 Example: 500