Exemplo de consultas de recursos
Utilizando /orderextract/{orderCode}/{channelName} (Por registro)
URL: /orderextract/012345678901/B2W[{
"id": 198,
"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",
"cancelDate": null,
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "COMISSION",
"expectedValue": 85.5,
"releasedValue": null,
"expectedPercentualComission": 15,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00: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": 85.5
}, {
"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",
"cancelDate": null,
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "SALE",
"expectedValue": 570,
"releasedValue": null,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00: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
}]
Utilizando /orderextract/{orderCode}/{channelName}/{type} (Por registro)
URL: /orderextract/012345678901/B2W/SALE[{
"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",
"cancelDate": null,
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "SALE",
"expectedValue": 570,
"releasedValue": null,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00: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
}]
Utilizando /orderextract/{id} (Por registro)
URL: /orderextract/197{
"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",
"invoiceNumber": "12347657",
"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": null,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": null,
"situation": "WAITING",
"concilied": false,
"observation": null,
"conciliationId": null,
"channel": "B2W",
"resolvedInERP": false,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": null,
"conciliationEndDate": null,
"partialConcilied": false,
"originalValue": 570
}
Utilizando /orderextract/concilieds (Por páginas)
URL: /orderextract/concilieds?2018-01-15&2018-01-15{
"page": {
"limit": 100,
"offset": 0,
"count": 2
},
"content": [{
"id": 198,
"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",
"cancelDate": null,
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "COMISSION",
"expectedValue": 85.5,
"releasedValue": 85.5,
"expectedPercentualComission": 15,
"releasedPercentualComission": 15,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": "2018-02-01T00:00:00.000+0000",
"situation": "CONCILIED",
"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": 85.5
}, {
"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",
"cancelDate": null,
"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": "CONCILIED",
"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 /orderextract/unresolveds (Por páginas)
URL: Utilizando /orderextract/unresolveds?2018-01-15&2018-01-15{
"page": {
"limit": 100,
"offset": 0,
"count": 2
},
"content": [{
"id": 198,
"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",
"cancelDate": null,
"orderId": "01-23456789",
"origin": "B2W",
"paymentMethod": "BILLET",
"plotValue": 570,
"totalValue": 570,
"plotsQuantity": 1,
"plotNumber": 1,
"extractType": "COMISSION",
"expectedValue": 85.5,
"releasedValue": 85.5,
"expectedPercentualComission": 15,
"releasedPercentualComission": 15,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": "2018-02-01T00:00:00.000+0000",
"situation": "CONCILIED",
"concilied": true,
"observation": "OK",
"conciliationId": 100,
"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": 85.5
}, {
"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",
"cancelDate": null,
"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": "CONCILIED",
"concilied": true,
"observation": "OK",
"conciliationId": 100,
"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
}]
}
Utilizando /order/{orderCode}{channelName}
URL: Utilizando /order/012345678901/B2W{
"status": 200,
"message": "OK",
"responseObject": {
"orderCode": "01-23456789",
"channelName": "B2W",
"installments": [{
"id": 198,
"oi": "987412365.",
"channelStatus": "CONCLUDED",
"internalStatus": "INVOICED",
"orderCode": "012345678901",
"orderDate": "2018-01-01T12:00:00.000+0000",
"paidDate": "2018-01-02T10:00:00.000+0000",
"invoiceNumber": "12347657",
"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": "COMISSION",
"expectedValue": 85.5,
"releasedValue": null,
"expectedPercentualComission": 15,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": null,
"situation": "WAITING",
"concilied": false,
"observation": null,
"conciliationId": null,
"channel": "B2W",
"resolvedInERP": false,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": null,
"conciliationEndDate": null,
"partialConcilied": false,
"originalValue": 85.5
}, {
"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": null,
"expectedPercentualComission": null,
"releasedPercentualComission": null,
"expectedDate": "2018-02-01T00:00:00.000+0000",
"releasedDate": null,
"situation": "WAITING",
"concilied": false,
"observation": null,
"conciliationId": null,
"channel": "B2W",
"resolvedInERP": false,
"orderIdHubOrigin": 123654,
"accountName": "marketplace_account",
"invoiceNumber": "12347657",
"customerName": "João da Silva",
"customerDocumentNumber": 578654448,
"conciliationInitDate": null,
"conciliationEndDate": null,
"partialConcilied": false,
"originalValue": 570
}]
}
}