Skip to content

Instantly share code, notes, and snippets.

@JKring
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JKring/3f85d87655c3af14a7f0 to your computer and use it in GitHub Desktop.
Save JKring/3f85d87655c3af14a7f0 to your computer and use it in GitHub Desktop.
New Pricing Docs

Going forward, Job and JobTemplate will including a pricing object.

Job Templates

The pricing object will include an integer for both base and specialist. The integer is in cents. For example, the response below indicates that Standard Blog Posts start at $99, and go up to $149 with a specialist.

[
  {
    "id": "52cdda648b588f7e020034d5",
    "pricing": { "base": 9900, "specialist": 14900 },
    "content_format": {
      "id": "52cdda648b588f7e020034d5",
      "name": "Standard Blog Post",
      "min_quantity": 1,
      "pitchable": true,
      "length_metric": "350-450 words"
    },
    "prompts": [
      {
        "id": "52cdda2f8b588f7e02000062",
        "kind": "boolean",
        "label": "This post should mention Battletoads",
        "value": true
      },
      {
        "id": "52cdda2f8b588f7e02000064",
        "kind": "string[255]",
        "label": "What hash tags should the writer mention?"
      }
    ]
  }
]

Jobs

The pricing object will include a single total key, which indicates the total cost of the job (in cents). For example, the job below will cost $99.

{
  "id": "96109a19b2e8082834d52eca",
  "account": {
    "id": "52cdda618b588f7e020033c7"
  },
  "quantity": 1,
  "state": "claimed",
  "topic": "Why a rug can tie a room together",
  "delivery": "standard",
  "created_at": "2014-01-08T23:08:20Z",
  "deadline_at": "2014-01-16T01:30:00Z",
  "pricing": { "total": 9900 },
  "content_format": {
    "id": "52cdda2f8b588f7e02000031",
    "name": "Standard Blog Post",
    "min_quantity": 1,
    "pitchable": true,
    "length_metric": "350-450 words"
  },
  "specialty": null,
  "prompts": [
    {
      "id": "536936936ffbd9f3d2000011",
      "kind": "boolean",
      "label": "This post should mention Battletoads",
      "value": true
    },
    {
      "id": "536936946ffbd9f3d2000038",
      "kind": "string[255]",
      "label": "What hash tags should the writer mention?",
      "value": "#yolo"
    }
  ],
  "industries": [
    {
      "id": "536936896ffbd9f3d2000002",
      "name": "Lifestyle/Travel"
    },
    {
      "id": "536936896ffbd9f3d2000003",
      "name": "Entertainment"
    }
  ],
  "guidelines": [
    {
      "id": "536936936ffbd9f3d2000011",
      "kind": "Tone",
      "name": "Formal/Professional"
    },
    {
      "id": "536936946ffbd9f3d2000038",
      "kind": "Audience",
      "name": "Seniors"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment