API Documentation
Print ¶
Rechat does not offer printing directly. Instead, we can connect to different Print Providers so our users can design their work in Rechat but print them in third party vendors. This meas that any given Agent may have access to different print vendors and print products.
Also, each template instance, given it’s number of pages, width, height and orientation may be printed using different products.
Therefore, pringint is a 2 step process:
-
Finding out which print products are available for a given template instance
-
When user selects one, pushing the user to that flow.
Get list of available products for a template instance ¶
Get list of available products for a template instanceGET/templates/instances/:instance/print/products
Given a template instance, this will return the list of available print products and a url to open each one. If a user selects a product, you can direct user’s browser to the provided url.
Example URI
- instance
string
(required) Example: c741cf41-3988-4246-915c-ef0b500ad73a
200
Body
{
"code": "OK",
"data": [
{
"product": {
"id": "1c4f6502-089b-4425-aa3e-fc1e1cf6db88",
"name": "Updated XPD Product",
"size": "8.5x11",
"pages": 1,
"orientation": "Portrait",
"bleed_size": 0.125,
"brand": "ab5ffdf1-2aa0-4605-a67f-d3e970bb8e9f",
"product_id": "LGPC",
"template_key": null,
"template_external_number": null,
"provider": "xpressdocs",
"provider_name": "XPressDocs",
"pid": "1c4f6502-089b-4425-aa3e-fc1e1cf6db88",
"ord": "1",
"type": "print_product"
},
"url": "http://localhost:3079/templates/instances/print?hash=jFzdumdIV3GjyYeRQjB3AvpzhriAJAyGDyteeo9XLHOICCFjGNKVvuEczyhER3y9kxDSPuwS29FDCP5F4EXg0kHGX70Yd5ISlxm071dkKVh1g8i913FvKFg0bbAHerfQEGXSFj8SxF5mFvd4I1r0Fm3Ts5lkr2CmGul2Y3kUBG6KQfu%2F8pT1bvYPhT%2Fol2jUj2tcTHQStU7Iwmsi5Lk%2FqmAntPd0G1EL5jLNWBBxpSiMLeNQIqvCzHrSExaUNxehCRv8fFE%2FnSwJutm%2B4RIt77bTggwfkX0iqZ6oAuvBPVbPDXE%3D",
"type": "print_option"
}
],
"info": {
"count": 1,
"total": 0
}
}