Download the PHP package dealer4dealer/module-substituteorders without Composer
On this page you can find all versions of the php package dealer4dealer/module-substituteorders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dealer4dealer/module-substituteorders
More information about dealer4dealer/module-substituteorders
Files in dealer4dealer/module-substituteorders
Download dealer4dealer/module-substituteorders
More information about dealer4dealer/module-substituteorders
Files in dealer4dealer/module-substituteorders
Vendor dealer4dealer
Package module-substituteorders
Short Description A module so Magento saves orders from multiple sources in one table, overrides the default order list in customer backend.
License GPL-3.0-only
Package module-substituteorders
Short Description A module so Magento saves orders from multiple sources in one table, overrides the default order list in customer backend.
License GPL-3.0-only
Please rate this library. Is it a good library?
Informations about the package module-substituteorders
Dealer4Dealer Substitute Orders
Replace default Magento orders in frontend. So orders from an external source will also be displayed in the grid. Substitute orders support:
- Orders
- Additional data
- Shipping address
- Additional data
- Billing address
- Additional data
- items
- Additional data
- Invoices
- Additional data
- Shipping address
- Additional data
- Billing address
- Additional data
- items
- Additional data
- Shipments
- Multiple trackers.
- Additional data
- Shipping address
- Additional data
- Billing address
- Additional data
- items
- Additional data
Events hooked in
- sales_order_place_after
- sales_order_invoice_save_after
- sales_order_shipment_save_after
API
The substitute order module uses the Magento 2 REST API for CRUD operations on Order, Invoice and Shipment.
Orders
Json data structure
{
"order_id": "string",
"invoice_ids": [
0
],
"magento_order_id": "string",
"magento_customer_id": "string",
"external_customer_id": "string",
"ext_order_id": "string",
"base_grandtotal": "string",
"base_subtotal": "string",
"grandtotal": "string",
"subtotal": "string",
"po_number": "string",
"state": "string",
"shipping_method": "string",
"shipping_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
},
"billing_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
},
"payment_method": "string",
"base_discount_amount": "string",
"discount_amount": "string",
"order_date": "string",
"base_tax_amount": "string",
"tax_amount": "string",
"base_shipping_amount": "string",
"shipping_amount": "string",
"items": [
{
"orderitem_id": "string",
"order": "string",
"order_id": "string",
"invoice_id": "string",
"name": "string",
"sku": "string",
"base_price": "string",
"price": "string",
"base_row_total": "string",
"row_total": "string",
"base_tax_amount": "string",
"tax_amount": "string",
"qty": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"base_discount_amount": "string",
"discount_amount": "string"
}
],
"magento_increment_id": "string",
"updated_at": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"attachments": [
{
"file_data": "string",
"name": "string"
}
]
}
Create order
- URL: /V1/dealer4dealer-substituteorders/order
- Method::
POST
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Update order
- URL: /V1/dealer4dealer-substituteorders/order
- Method::
PUT
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Delete Order
- URL: /V1/dealer4dealer-substituteorders/order/{id}
- Method::
DELETE
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content: boolean
Get Order
- URL: /V1/dealer4dealer-substituteorders/order/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content:
Get Order by magento_order_id
- URL: /V1/dealer4dealer-substituteorders/order/magentoorder/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content:
Get Order by ext_order_id
- URL: /V1/dealer4dealer-substituteorders/order/extorder/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content:
Invoices
Json data structure
{
"invoice_id": "string",
"order_ids": [
0
],
"magento_invoice_id": "string",
"ext_invoice_id": "string",
"po_number": "string",
"magento_customer_id": "string",
"base_tax_amount": "string",
"base_discount_amount": "string",
"base_shipping_amount": "string",
"base_subtotal": "string",
"base_grandtotal": "string",
"tax_amount": "string",
"discount_amount": "string",
"shipping_amount": "string",
"subtotal": "string",
"grandtotal": "string",
"invoice_date": "string",
"state": "string",
"magento_increment_id": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"items": [
{
"invoiceitem_id": "string",
"invoice_id": "string",
"order_id": "string",
"name": "string",
"sku": "string",
"base_price": "string",
"price": "string",
"base_row_total": "string",
"row_total": "string",
"base_tax_amount": "string",
"tax_amount": "string",
"qty": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"base_discount_amount": "string",
"discount_amount": "string"
}
],
"shipping_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
},
"billing_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"attachments": [
{
"file_data": "string",
"name": "string"
}
]
}
}
Create invoice
- URL: /V1/dealer4dealer-substituteorders/invoice
- Method::
POST
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Update invoice
- URL: /V1/dealer4dealer-substituteorders/invoice
- Method::
PUT
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Delete invoice
- URL: /V1/dealer4dealer-substituteorders/invoice/{id}
- Method::
DELETE
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content: boolean
Get invoice
- URL: /V1/dealer4dealer-substituteorders/invoice/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content:
Shipments
Json data structure
{
"shipment_id": "string",
"ext_shipment_id": "string",
"customer_id": "string",
"order_id": "string",
"invoice_id": "string",
"shipment_status": "string",
"increment_id": "string",
"created_at": "string",
"updated_at": "string",
"name": "string",
"tracking": [
{
"carrier_name": "string",
"code": "string",
"url": "string"
}
],
"additional_data": [
{
"key": "string",
"value": "string"
}
],
"attachments": [
{
"file_data": "string",
"name": "string"
}
],
"items": [
{
"shipmentitem_id": "string",
"shipment_id": "string",
"row_total": "string",
"price": "string",
"weight": "string",
"qty": "string",
"sku": "string",
"name": "string",
"description": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
}
],
"shipping_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
},
"billing_address": {
"orderaddress_id": "string",
"firstname": "string",
"middlename": "string",
"lastname": "string",
"prefix": "string",
"suffix": "string",
"company": "string",
"street": "string",
"postcode": "string",
"city": "string",
"country": "string",
"telephone": "string",
"fax": "string",
"additional_data": [
{
"key": "string",
"value": "string"
}
]
}
}
Create shipment
- URL: /V1/dealer4dealer-substituteorders/shipment
- Method::
POST
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Update shipment
- URL: /V1/dealer4dealer-substituteorders/shipment
- Method::
PUT
- URL Params None
-
Data params
- Success Response:
- Code: 200
- Content:
Delete shipment
- URL: /V1/dealer4dealer-substituteorders/shipment/{id}
- Method::
DELETE
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content: boolean
Get shipment
- URL: /V1/dealer4dealer-substituteorders/shipment/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content:
Attachments
Json data structure
Create Attachment
- URL: /V1/dealer4dealer-substituteorders/attachment
- Method::
POST
- URL Params id=[integer] (required)
-
Data params
- Success Response:
- Code: 200
- Content: boolean
Update Attachment
- URL: /V1/dealer4dealer-substituteorders/attachment/{id}
- Method::
PUT
- URL Params id=[integer] (required)
-
Data params
- Success Response:
- Code: 200
- Content: boolean
Delete Attachment
- URL: /V1/dealer4dealer-substituteorders/attachment/{id}
- Method::
DELETE
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content: boolean
Get Attachment
- URL: /V1/dealer4dealer-substituteorders/attachment/{id}
- Method::
GET
- URL Params id=[integer] (required)
- Data params None
- Success Response:
- Code: 200
- Content: boolean
Examples
Attachments
Base64encoded of an test PDF file
Example Call - POST Add Single Attachment
Example Call - PUT Add attachments to order
All versions of module-substituteorders with dependencies
PHP Build Version
Package Version
No informations.
The package dealer4dealer/module-substituteorders contains the following files
Loading the files please wait ....