OrderChangePayment

A mutation OrderChangePayment permite efetivar a troca de pagamento de um pedido fechado.

A nova forma de pagamento e o caso tenha o parcelamento, deverão ser executadas nas mutations CheckoutSelectPaymentMethod e CheckoutSelectInstallment informando o campo orderId.

Exemplo

mutation OrderChangePayment(
  $checkoutId: Uuid!
  $orderId: Long!
  $paymentData: String!
  $customerAccessToken: String!
) {
  data: orderChangePayment(
    checkoutId: $checkoutId
    orderId: $orderId
    paymentData: $paymentData
    customerAccessToken: $customerAccessToken
  ) {
    isSuccess
  }
}
Mostrar resposta
{
  "data": {
    "OrderChangePayment": {
      "isSuccess": true
    }
  }
}