Exemplo de envio de recursos
Utilizando /orderextract/resolve/{id}
URL: /orderextract/resolve/197Resultado:
{
"id": 197,
"oi": "987412365.",
"channelStatus": "CONCLUDED",
"internalStatus": "INVOICED",
"orderCode": "012345678901",
"orderDate": "2018-01-01T12:00:00.000+0000",
"paidDate": "2018-01-02T10:00:00.000+0000",
"invoiceDate": "2018-01-02T12:00:00.000+0000",
"sentDate": "2018-01-03T12:00:00.000+0000",
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "SALE",
"expectedValue": 570,
"releasedValue": 570,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": "2018-02-01T00:00:00.000+0000",
"situation": "WAITING",
"concilied": true,
"observation": "OK",
"conciliationId": 100,
"channel": "B2W",
"resolvedInERP": true,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"invoiceNumber": "002569",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": null,
"conciliationEndDate": null,
"partialConcilied": false,
"originalValue": 570
}
Utilizando /order/{orderCode}/{channelName}/{cancelDate}
URL: /order/cancel/012345678901/B2W/2018-01-16Resultado:
{
"status": 200,
"message": "OK",
"responseObject": {
"orderCode": "012345678901",
"channelName": "B2W",
"installments": [{
"id": 199,
"oi": "987412365.",
"channelStatus": "CANCELED",
"internalStatus": "CANCELED",
"orderCode": "012345678901",
"orderDate": "2018-01-01T12:00:00.000+0000",
"paidDate": "2018-01-02T10:00:00.000+0000",
"invoiceDate": "2018-01-02T12:00:00.000+0000",
"sentDate": "2018-01-03T12:00:00.000+0000",
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "RETURN_COMISSION",
"expectedValue": 0,
"releasedValue": null,
"expectedPercentualComission": 15,
"releasedPercentualComission": null,
"expectedDate": "2018-02-15T00:00:00.000+0000",
"releasedDate": null,
"situation": "WAITING",
"concilied": false,
"observation": null,
"conciliationId": null,
"channel": "B2W",
"resolvedInERP": false,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"invoiceNumber": "002569",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": null,
"conciliationEndDate": null,
"partialConcilied": false,
"originalValue": 570
}, {
"id": 200,
"oi": "987412365.",
"channelStatus": "CANCELED",
"internalStatus": "CANCELED",
"orderCode": "012345678901",
"orderDate": "2018-01-01T12:00:00.000+0000",
"paidDate": "2018-01-02T10:00:00.000+0000",
"invoiceDate": "2018-01-02T12:00:00.000+0000",
"sentDate": "2018-01-03T12:00:00.000+0000",
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "RETURN_SALE",
"expectedValue": 570,
"releasedValue": null,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-15T00:00:00.000+0000",
"releasedDate": null,
"situation": "WAITING",
"concilied": false,
"observation": null,
"conciliationId": null,
"channel": "B2W",
"resolvedInERP": false,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"invoiceNumber": "002569",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": "2018-02-01T00:00:00.000+0000",
"conciliationEndDate": "2018-02-01T00:00:00.000+0000",
"conciliationCloseDate": "2018-02-04T13:02:08.377+0000",
"partialConcilied": false,
"originalValue": 570
}]
}
}