Create a new supplier record with site information and optional certifications.
Fairly Made API (3.0.0)
The Fairly Made API describes endpoints for creating and retrieving supply‑chain entities such as suppliers, materials, components, products and purchased items.
This identifier will make each supplier site unique in our systems.
Postal address of an entity.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/suppliers
- https://api.fairlymade.com/suppliers
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- minimal
- full
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/suppliers \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-SUPPLIER-SITE-0001",
"name": "Supplier A",
"site_address": {
"country": "FR"
}
}'{ "supplier_id": "3cb1e20c-c6c9-4e71-ba66-399c468f697c" }
This identifier will make each material unique in our systems.
Must be the id of your material supplier. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
If you do not know the supplier of the item, you have the option to only fill an address. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
Purchased material inputs to produce this material. Each item represents a purchased material and its contribution percentage. Only applicable when the entity is linked with an owner (owner_kind, owner_id); not used when providing a processing step address. Sum of purchased items and used items usage_percentage must equal 100.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/materials
- https://api.fairlymade.com/materials
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- owned_by_supplier
- with_processing_address
- tshirt_cotton_owned_by_supplier
- tshirt_cotton_with_processing_address
- shoes_leather_owned_by_supplier
- shoes_leather_with_processing_address
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/materials \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-MATERIAL-COTTON-0001",
"owner_kind": "SUPPLIER",
"owner_id": "a5765369-b42c-4e6f-849b-0c3873e8deb5",
"raw_material": "COTTON"
}'{ "material_id": "fba2a54e-bc4a-4e2a-8ad4-84dcfe66dea1" }
This identifier will make each component unique in our systems.
Must be the id of your component supplier. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
If you do not know the supplier of the item, you have the option to only fill an address. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
Describes the intrinsic material or part category of a component.
Composition details; the sum of percentages must equal 100% and components must be unique. When a raw material has multiple origins, you must create multiple entries in the array (one per origin).
Raw material taxonomy.
Percentage of this raw material (total composition must sum to 100%).
Purchased items used to produce this component (can be purchased component or purchased material). If the purchased item is a component, usage_category is mandatory. Only applicable when the entity is linked with an owner (owner_kind, owner_id); not used when providing a processing step address. Sum of purchased items and used items usage_percentage must equal 100.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/components
- https://api.fairlymade.com/components
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- owned_by_supplier
- with_processing_address
- tshirt_fabric_owned_by_supplier
- tshirt_fabric_with_processing_address
- shoes_upper_owned_by_supplier
- shoes_upper_with_processing_address
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/components \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-COMPONENT-FABRIC-0001",
"owner_kind": "SUPPLIER",
"owner_id": "5d1bb854-6193-465c-a3b1-69f9e34d8d91",
"compositions": [
{
"composition_raw_material": "COTTON",
"composition_percentage": 100
}
]
}'{ "component_id": "41afafe5-2a48-424a-baef-34c2ad44ef7b" }
Must be the id of your manufacturing supplier. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
If you do not know the supplier of the item, you have the option to only fill an address. You must include either the owner (owner_kind, owner_id) or the processing step address, but not both.
Product category taxonomy. Values.
Purchased items used in this product. Only applicable when the entity is linked with an owner (owner_kind, owner_id); not used when providing a processing step address. Sum of purchased items and used items usage_percentage must equal 100.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/products
- https://api.fairlymade.com/products
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- owned_by_supplier
- with_processing_address
- tshirt_owned_by_supplier
- tshirt_with_processing_address
- shoes_owned_by_supplier
- shoes_with_processing_address
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/products \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-PRODUCT-SHIRT-0001",
"owner_kind": "SUPPLIER",
"owner_id": "f0b5fb65-f065-432e-9e96-c52692931626",
"category": "SHIRTS"
}'{ "product_id": "0d012afa-f885-4e65-aeca-37e27701e2d1" }
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/purchased-items
- https://api.fairlymade.com/purchased-items
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- minimal
- full
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/purchased-items \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-PURCHASED-ITEM-MAT-0001",
"buyer_kind": "CUSTOMER",
"buyer_id": "f0b5fb65-f065-432e-9e96-c52692931626",
"seller_id": "a5765369-b42c-4e6f-849b-0c3873e8deb5",
"item_id": "364c5ece-7f42-418b-baa7-9a272dd044ef"
}'{ "purchased_item_id": "b09f068d-086a-4d53-b786-0fe2e226539e" }
This identifier will make each generic product information unique in our systems. We recommend concatenating ref, color_code, collection and the purchase_order from the related purchased item (create purchased item). Example ref_color_code_collection_purchase_order.
Identifier of the manufactured product (create product) to which this information belongs.
Global Trade Item Number (GTIN) or European Article Number (EAN). Should contain 13 digits.
Market segment taxonomy.
Eco-modulation taxonomy. Values.
This field is linked to the Business Unit linked to this Product. We are expecting a string value. This field is specific to you and your organization.
This field is linked to the Division by Category linked to this Product. We are expecting a string value. This field is specific to you and your organization.
This field is linked to the Product Category of Group. We are expecting a string value. This field is specific to you and your organization.
This field is linked to the Product Category of the Maison. We are expecting a string value. This field is specific to you and your organization.
Identifier of the QR code associated with this generic product information.
- Mock serverhttps://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/generic-product-infos
- https://api.fairlymade.com/generic-product-infos
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- minimal
- full
- teeShirt
- shoe
curl -i -X POST \
https://doc.api.fairlymade.com/_mock/swagger-fairlymadeapi-v3/generic-product-infos \
-H 'Content-Type: application/json' \
-d '{
"unique_identifier": "FM-REF-001_DEFAULT_C01_PO-001",
"ref": "REF-001",
"color_code": "DEFAULT",
"collection": "C01",
"packaging_id": "c8568d90-0609-4ff6-b76f-5bf14051af43",
"qr_code_id": "edf53f45-152b-4330-8925-90c2ffdd9c3b",
"warehouse": {
"address": {
"country": "FR"
}
}
}'{ "product_info_id": "9053bb2b-5d9c-4fcf-86b3-cc9e75c1da0e" }